home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: cs.vu.nl!jalten
- From: jalten@cs.vu.nl (Alten JP)
- Subject: Re: C++ 4.5 CanClose
- Nntp-Posting-Host: kits.cs.vu.nl
- References: <00001a81+000098f8@msn.com>
- Sender: news@cs.vu.nl
- Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
- Date: Sat, 3 Feb 1996 11:18:04 GMT
- X-Newsreader: TIN [version 1.2 PL2]
- Message-ID: <DM7624.771.0.-s@cs.vu.nl>
-
-
- Carl S. Moore (cmoore@msn.com) wrote:
- [sshhhh]
- : I have the following, where a menu item calls Exitgame, and then it
- : brings up the CanClose box. It doesn't seem to respond to the
- : CanClose through this menu exit, but the CanClose does work when I
- : terminate the window by clicking on the upper left corner etc. (ie,
- : doesn't route through Exitgame).
-
- : void TMyWindow::Exitgame()
- : {
- : TMyWindow::CanClose();
- : }
-
-
- How about calling CloseWindow(), which will call CanClose automatically?
-
- void TMyWindow::Exitgame()
- {
- CloseWindow();
- }
-
- OWL questions are more fruitfull in comp.os.ms-windows.programmer.misc
- though.
-
- Good luck
-
- Jelle
-
- +-------------------------------------------------------+
- | Jelle Paul Alten | jalten@cs.vu.nl |
- | Vrije Universiteit Amsterdam | |
- +-------------------------------------------------------+
-